function ResponseWriter(ts, enc, resp) {

	this.writeValues = function(values, k) {
		var data = enc.encode(values[0].getType(), values[0].getObject());
		var c = new ContentHeadInit(data.length, values[0].getType().asString(), resp);

		ts.getHeadWriter().writeHead(c);		
		ts.getOutputStream().write(data);
		ts.getOutputStream().flush(k);

	}

}
